from flask_login import login_manager,LoginManager
from application.models.model import User

login = LoginManager()

@login.user_loader
def user_loader(user_id: str):
    return User.query.get(user_id)
